package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.SysLabelEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SysLabelDao {
    Long insert(SysLabelEntity entity);

    void insertBatch(List<SysLabelEntity> list);

    SysLabelEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(SysLabelEntity entity);

    List<SysLabelEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);

    Integer updateBatch(@Param("list") List<SysLabelEntity> sysLabelEntities, @Param("corpid") String corpid);
}